DIR = dir1 dir2
FILES = $(foreach dir,$(DIR),$(wildcard $(dir)/*))

all:
	echo $(FILES)
